]> dgit.raspbian.org Git - libde265.git/commit
[PATCH] Don't update sps if they are only repeated
authorTobias Frost <tobi@debian.org>
Fri, 13 Jan 2023 11:22:45 +0000 (12:22 +0100)
committerTobias Frost <tobi@debian.org>
Sun, 20 Sep 2026 11:47:08 +0000 (13:47 +0200)
commit8ebe4ca95cd3832680f7967b0446aaa203d9a8b7
treee0c1167729173d7f3c3ee6ca8acd917998cf4ae0
parent70aa93222a212a0695acbd939fbf8d17b602db86
[PATCH] Don't update sps if they are only repeated

This is an attempt to improve the mitigations from #365 and #366 and picks up an idea I described at #345:

> One way would be just to look at the pointers of the SPS (fast and easy, but
> may reject more than required), or investigate if the SPS used for the image
> generations are "compatible".

This changes do exactly this: It (very conservativly) checks if the old and new sps have
identical information -- except the reference picture set, which I believe is supposed
to be updated by new sps'). If they are basically identical, the old sps will be
used instead of the new one, (of course, reference image set is updated from the new one)

I'm using standalone operator== and helper functions to avoid changing ABI of the library;
if an ABI bump would be done, of course this should go to the respective classes.

Gbp-Pq: Name recycle_sps_if_possible.patch
libde265/decctx.cc
libde265/sps.cc